package com.ddc.study.feature.main.tree.detail;

import com.ddc.study.base.BasePresenter;
import com.ddc.study.base.BaseView;
import com.ddc.study.entity.Article;
import com.ddc.study.entity.MainData;

import androidx.annotation.IntRange;
import androidx.annotation.Nullable;

/**
 * Created on 2018/6/6.
 *
 * @author lshun
 * @version 1.0
 */
interface TreeDetailContract {
    interface IModel {
    }

    interface IView extends BaseView {
        void showData(@Nullable MainData<Article> data);
    }

    abstract class IPresenter extends BasePresenter<IView> {
        abstract void loadData(@IntRange(from = 0) int page, int cid);
    }
}
